#ifndef __JY901S_H
#define __JY901S_H
#include "my_struct.h"
#define ACC_UPDATE		0x01
#define GYRO_UPDATE		0x02
#define ANGLE_UPDATE	0x04
#define MAG_UPDATE		0x08
#define READ_UPDATE		0x80
extern volatile char s_cDataUpdate, s_cCmd;
void JY901S_Init(void);
void JY901S_Read_ANGLE(JY901S_ANGLE *angle);
static void SensorUartSend(uint8_t *p_data, uint32_t uiSize);
static void Delayms(uint32_t ucMs);
static void SensorDataUpdata(uint32_t uiReg, uint32_t uiRegNum);
#endif // !__JY901S_H